home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 120
/
Vol 120.iso
/
games
/
magic_ba.swf
/
scripts
/
frame_291
/
DoAction.as
Wrap
Text File
|
2010-11-09
|
1KB
|
52 lines
balls = 0;
_root.poping = 0;
startposition = 80;
xstart = 80;
n = 1;
ballcount = 1;
while(ballcount < 9)
{
ballcolor = random(4) + 1;
set("ball" add ballcount add "color",ballcolor);
duplicateMovieClip("originalball" add ballcolor,"ball" add ballcount,16384 + ballcount);
balls += 1;
setProperty("ball" add ballcount, _Y, 30);
setProperty("ball" add ballcount, _X, xstart + n * 25);
n += 1;
xstart = xstart;
ballcount++;
}
xstart = 55;
n = 1;
ballcount = 9;
while(ballcount < 19)
{
ballcolor = random(4) + 1;
set("ball" add ballcount add "color",ballcolor);
duplicateMovieClip("originalball" add ballcolor,"ball" add ballcount,16384 + ballcount);
balls += 1;
setProperty("ball" add ballcount, _X, xstart + n * 25);
setProperty("ball" add ballcount, _Y, 55);
n += 1;
xstart = xstart;
ballcount++;
}
xstart = 80;
n = 1;
ballcount = 19;
while(ballcount < 27)
{
ballcolor = random(5) + 1;
set("ball" add ballcount add "color",ballcolor);
duplicateMovieClip("originalball" add ballcolor,"ball" add ballcount,16384 + ballcount);
balls += 1;
setProperty("ball" add ballcount, _X, xstart + n * 25);
setProperty("ball" add ballcount, _Y, 80);
n += 1;
xstart = xstart;
ballcount++;
}
_root.totalballs = _root.balls;
nextballcolor = random(5) + 1;
nextnextballcolor = random(5) + 1;